/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cansniffer;

import java.awt.event.ActionEvent;
import java.util.Calendar;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.JCheckBox;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;

/**
 *
 * @author PiotrGl
 */
public class CANsniffer extends javax.swing.JFrame {
    MCP2510 CAN = new MCP2510();
    static private DefaultTableModel CANrx = new DefaultTableModel(); 
    /**
     * Creates new form CANsniffer
     */
    public CANsniffer() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jTabbedPane1 = new javax.swing.JTabbedPane();
        jPanel1 = new javax.swing.JPanel();
        jRegister = new javax.swing.JPanel();
        jSET_TXRTSCTRL = new javax.swing.JLabel();
        jSET_CNF27 = new javax.swing.JCheckBox();
        jSET_BFPCTRL = new javax.swing.JLabel();
        jSET_CANSTAT = new javax.swing.JLabel();
        jSET_CANCTRL = new javax.swing.JLabel();
        jSET_TEC = new javax.swing.JLabel();
        jSET_REC = new javax.swing.JLabel();
        jSET_CNF3 = new javax.swing.JLabel();
        jSET_CNF2 = new javax.swing.JLabel();
        jSET_CNF1 = new javax.swing.JLabel();
        jSET_CANINTE = new javax.swing.JLabel();
        jSET_CANINTF = new javax.swing.JLabel();
        jSET_EFLG = new javax.swing.JLabel();
        jSET_TXB0CTRL = new javax.swing.JLabel();
        jSET_TXB1CTRL = new javax.swing.JLabel();
        jSET_TXB2CTRL = new javax.swing.JLabel();
        jSET_RXB1CTRL = new javax.swing.JLabel();
        jSET_RXB0CTRL = new javax.swing.JLabel();
        jSET_CANSTAT7 = new javax.swing.JCheckBox();
        jSET_CANCTRL7 = new javax.swing.JCheckBox();
        jSET_CNF17 = new javax.swing.JCheckBox();
        jSET_CANINTE7 = new javax.swing.JCheckBox();
        jSET_CANINTF7 = new javax.swing.JCheckBox();
        jSET_EFLG7 = new javax.swing.JCheckBox();
        jSET_CANSTAT6 = new javax.swing.JCheckBox();
        jSET_CANCTRL6 = new javax.swing.JCheckBox();
        jSET_CNF36 = new javax.swing.JCheckBox();
        jSET_CNF26 = new javax.swing.JCheckBox();
        jSET_CNF16 = new javax.swing.JCheckBox();
        jSET_CANINTE6 = new javax.swing.JCheckBox();
        jSET_CANINTF6 = new javax.swing.JCheckBox();
        jSET_EFLG6 = new javax.swing.JCheckBox();
        jSET_TXB0CTRL6 = new javax.swing.JCheckBox();
        jSET_TXB1CTRL6 = new javax.swing.JCheckBox();
        jSET_TXB2CTRL6 = new javax.swing.JCheckBox();
        jSET_RXB0CTRL6 = new javax.swing.JCheckBox();
        jSET_RXB0CTRL5 = new javax.swing.JCheckBox();
        jSET_CANSTAT5 = new javax.swing.JCheckBox();
        jSET_CANCTRL5 = new javax.swing.JCheckBox();
        jSET_CANCTRL4 = new javax.swing.JCheckBox();
        jSET_CANSTAT2 = new javax.swing.JCheckBox();
        jSET_CANSTAT3 = new javax.swing.JCheckBox();
        jSET_CANSTAT1 = new javax.swing.JCheckBox();
        jSET_TXRTSCTRL4 = new javax.swing.JCheckBox();
        jSET_BFPCTRL5 = new javax.swing.JCheckBox();
        jSET_TECedit = new javax.swing.JTextField();
        jSET_RECedit = new javax.swing.JTextField();
        jSET_CNF25 = new javax.swing.JCheckBox();
        jSET_CNF24 = new javax.swing.JCheckBox();
        jSET_CNF23 = new javax.swing.JCheckBox();
        jSET_CNF22 = new javax.swing.JCheckBox();
        jSET_CNF21 = new javax.swing.JCheckBox();
        jSET_CNF20 = new javax.swing.JCheckBox();
        jSET_CNF32 = new javax.swing.JCheckBox();
        jSET_CNF31 = new javax.swing.JCheckBox();
        jSET_CNF30 = new javax.swing.JCheckBox();
        jSET_CNF15 = new javax.swing.JCheckBox();
        jSET_CNF14 = new javax.swing.JCheckBox();
        jSET_CNF13 = new javax.swing.JCheckBox();
        jSET_CNF12 = new javax.swing.JCheckBox();
        jSET_CNF11 = new javax.swing.JCheckBox();
        jSET_CNF10 = new javax.swing.JCheckBox();
        jSET_CANINTE5 = new javax.swing.JCheckBox();
        jSET_CANINTF5 = new javax.swing.JCheckBox();
        jSET_EFLG5 = new javax.swing.JCheckBox();
        jSET_TXB0CTRL5 = new javax.swing.JCheckBox();
        jSET_TXB0CTRL4 = new javax.swing.JCheckBox();
        jSET_TXB0CTRL3 = new javax.swing.JCheckBox();
        jSET_TXB0CTRL1 = new javax.swing.JCheckBox();
        jSET_TXB0CTRL0 = new javax.swing.JCheckBox();
        jSET_TXB1CTRL5 = new javax.swing.JCheckBox();
        jSET_TXB1CTRL4 = new javax.swing.JCheckBox();
        jSET_TXB1CTRL3 = new javax.swing.JCheckBox();
        jSET_TXB1CTRL1 = new javax.swing.JCheckBox();
        jSET_TXB1CTRL0 = new javax.swing.JCheckBox();
        jSET_TXB2CTRL5 = new javax.swing.JCheckBox();
        jSET_TXB2CTRL4 = new javax.swing.JCheckBox();
        jSET_TXB2CTRL3 = new javax.swing.JCheckBox();
        jSET_TXB2CTRL1 = new javax.swing.JCheckBox();
        jSET_TXB2CTRL0 = new javax.swing.JCheckBox();
        jSET_RXB0CTRL3 = new javax.swing.JCheckBox();
        jSET_RXB0CTRL1 = new javax.swing.JCheckBox();
        jSET_RXB0CTRL2 = new javax.swing.JCheckBox();
        jSET_RXB0CTRL0 = new javax.swing.JCheckBox();
        jSET_RXB1CTRL0 = new javax.swing.JCheckBox();
        jSET_RXB1CTRL1 = new javax.swing.JCheckBox();
        jSET_RXB1CTRL2 = new javax.swing.JCheckBox();
        jSET_RXB1CTRL5 = new javax.swing.JCheckBox();
        jSET_RXB1CTRL6 = new javax.swing.JCheckBox();
        jSET_RXB1CTRL3 = new javax.swing.JCheckBox();
        jSET_CANINTE3 = new javax.swing.JCheckBox();
        jSET_CANINTE4 = new javax.swing.JCheckBox();
        jSET_CANINTE1 = new javax.swing.JCheckBox();
        jSET_CANINTE2 = new javax.swing.JCheckBox();
        jSET_CANINTE0 = new javax.swing.JCheckBox();
        jSET_CANINTF4 = new javax.swing.JCheckBox();
        jSET_CANINTF3 = new javax.swing.JCheckBox();
        jSET_CANINTF2 = new javax.swing.JCheckBox();
        jSET_CANINTF1 = new javax.swing.JCheckBox();
        jSET_CANINTF0 = new javax.swing.JCheckBox();
        jSET_EFLG4 = new javax.swing.JCheckBox();
        jSET_EFLG3 = new javax.swing.JCheckBox();
        jSET_EFLG2 = new javax.swing.JCheckBox();
        jSET_EFLG1 = new javax.swing.JCheckBox();
        jSET_EFLG0 = new javax.swing.JCheckBox();
        jSET_BFPCTRL4 = new javax.swing.JCheckBox();
        jSET_BFPCTRL3 = new javax.swing.JCheckBox();
        jSET_BFPCTRL2 = new javax.swing.JCheckBox();
        jSET_BFPCTRL1 = new javax.swing.JCheckBox();
        jSET_BFPCTRL0 = new javax.swing.JCheckBox();
        jSET_TXRTSCTRL0 = new javax.swing.JCheckBox();
        jSET_TXRTSCTRL1 = new javax.swing.JCheckBox();
        jSET_TXRTSCTRL2 = new javax.swing.JCheckBox();
        jSET_TXRTSCTRL5 = new javax.swing.JCheckBox();
        jSET_TXRTSCTRL3 = new javax.swing.JCheckBox();
        jButton1 = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jRX_Table = new javax.swing.JTable();
        jButton2 = new javax.swing.JButton();
        jPanel3 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jFilter_Table = new javax.swing.JTable();
        jFilter_Add = new javax.swing.JButton();
        jButton3 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jSET_TXRTSCTRL.setText("TXRTSCTRL");

        jSET_CNF27.setText("BTLMODE");
        jSET_CNF27.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CNF27ActionPerformed(evt);
            }
        });

        jSET_BFPCTRL.setText("BFPCTRL");

        jSET_CANSTAT.setText("CANSTAT");

        jSET_CANCTRL.setText("CANCTRL");

        jSET_TEC.setText("TEC");

        jSET_REC.setText("REC");

        jSET_CNF3.setText("CNF3");

        jSET_CNF2.setText("CNF2");

        jSET_CNF1.setText("CNF1");

        jSET_CANINTE.setText("CANINTE");

        jSET_CANINTF.setText("CANINTF");

        jSET_EFLG.setText("EFLG");

        jSET_TXB0CTRL.setText("TXB0CTRL");

        jSET_TXB1CTRL.setText("TXB1CTRL");

        jSET_TXB2CTRL.setText("TXB2CTRL");

        jSET_RXB1CTRL.setText("RXB1CTRL");

        jSET_RXB0CTRL.setText("RXB0CTRL");

        jSET_CANSTAT7.setText("OPMOD2");
        jSET_CANSTAT7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANSTAT7ActionPerformed(evt);
            }
        });

        jSET_CANCTRL7.setText("REQOP2");
        jSET_CANCTRL7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANCTRL7ActionPerformed(evt);
            }
        });

        jSET_CNF17.setText("SJW1");
        jSET_CNF17.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CNF17ActionPerformed(evt);
            }
        });

        jSET_CANINTE7.setText("MERRE");
        jSET_CANINTE7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANINTE7ActionPerformed(evt);
            }
        });

        jSET_CANINTF7.setText("MERRF");
        jSET_CANINTF7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANINTF7ActionPerformed(evt);
            }
        });

        jSET_EFLG7.setText("RX1OVR");
        jSET_EFLG7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_EFLG7ActionPerformed(evt);
            }
        });

        jSET_CANSTAT6.setText("OPMOD1");
        jSET_CANSTAT6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANSTAT6ActionPerformed(evt);
            }
        });

        jSET_CANCTRL6.setText("REQOP1");
        jSET_CANCTRL6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANCTRL6ActionPerformed(evt);
            }
        });

        jSET_CNF36.setText("WAKFIL");
        jSET_CNF36.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CNF36ActionPerformed(evt);
            }
        });

        jSET_CNF26.setText("SAM");
        jSET_CNF26.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CNF26ActionPerformed(evt);
            }
        });

        jSET_CNF16.setText("SJW0");
        jSET_CNF16.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CNF16ActionPerformed(evt);
            }
        });

        jSET_CANINTE6.setText("WAKIE");
        jSET_CANINTE6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANINTE6ActionPerformed(evt);
            }
        });

        jSET_CANINTF6.setText("WAKIF");
        jSET_CANINTF6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANINTF6ActionPerformed(evt);
            }
        });

        jSET_EFLG6.setText("RX0OVR");
        jSET_EFLG6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_EFLG6ActionPerformed(evt);
            }
        });

        jSET_TXB0CTRL6.setText("ABTF");
        jSET_TXB0CTRL6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_TXB0CTRL6ActionPerformed(evt);
            }
        });

        jSET_TXB1CTRL6.setText("ABTF");
        jSET_TXB1CTRL6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_TXB1CTRL6ActionPerformed(evt);
            }
        });

        jSET_TXB2CTRL6.setText("ABTF");
        jSET_TXB2CTRL6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_TXB2CTRL6ActionPerformed(evt);
            }
        });

        jSET_RXB0CTRL6.setText("RXM1");
        jSET_RXB0CTRL6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_RXB0CTRL6ActionPerformed(evt);
            }
        });

        jSET_RXB0CTRL5.setText("RXM0");
        jSET_RXB0CTRL5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_RXB0CTRL5ActionPerformed(evt);
            }
        });

        jSET_CANSTAT5.setText("OPMOD0");
        jSET_CANSTAT5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANSTAT5ActionPerformed(evt);
            }
        });

        jSET_CANCTRL5.setText("REQOP0");
        jSET_CANCTRL5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANCTRL5ActionPerformed(evt);
            }
        });

        jSET_CANCTRL4.setText("ABAT");
        jSET_CANCTRL4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANCTRL4ActionPerformed(evt);
            }
        });

        jSET_CANSTAT2.setText("ICOD1");
        jSET_CANSTAT2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANSTAT2ActionPerformed(evt);
            }
        });

        jSET_CANSTAT3.setText("ICOD2");
        jSET_CANSTAT3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANSTAT3ActionPerformed(evt);
            }
        });

        jSET_CANSTAT1.setText("ICOD0");
        jSET_CANSTAT1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANSTAT1ActionPerformed(evt);
            }
        });

        jSET_TXRTSCTRL4.setText("B1RTS");
        jSET_TXRTSCTRL4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_TXRTSCTRL4ActionPerformed(evt);
            }
        });

        jSET_BFPCTRL5.setText("B1BFS");
        jSET_BFPCTRL5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_BFPCTRL5ActionPerformed(evt);
            }
        });

        jSET_TECedit.setText("jTextField1");

        jSET_RECedit.setText("jTextField2");

        jSET_CNF25.setText("PHSEG12");
        jSET_CNF25.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CNF25ActionPerformed(evt);
            }
        });

        jSET_CNF24.setText("PHSEG11");
        jSET_CNF24.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CNF24ActionPerformed(evt);
            }
        });

        jSET_CNF23.setText("PHSEG10");
        jSET_CNF23.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CNF23ActionPerformed(evt);
            }
        });

        jSET_CNF22.setText("PHSEG2");
        jSET_CNF22.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CNF22ActionPerformed(evt);
            }
        });

        jSET_CNF21.setText("PHSEG1");
        jSET_CNF21.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CNF21ActionPerformed(evt);
            }
        });

        jSET_CNF20.setText("PHSEG0");
        jSET_CNF20.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CNF20ActionPerformed(evt);
            }
        });

        jSET_CNF32.setText("PHSEG22");
        jSET_CNF32.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CNF32ActionPerformed(evt);
            }
        });

        jSET_CNF31.setText("PHSEG21");
        jSET_CNF31.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CNF31ActionPerformed(evt);
            }
        });

        jSET_CNF30.setText("PHSEG20");
        jSET_CNF30.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CNF30ActionPerformed(evt);
            }
        });

        jSET_CNF15.setText("BRP5");
        jSET_CNF15.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CNF15ActionPerformed(evt);
            }
        });

        jSET_CNF14.setText("BRP4");
        jSET_CNF14.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CNF14ActionPerformed(evt);
            }
        });

        jSET_CNF13.setText("BRP3");
        jSET_CNF13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CNF13ActionPerformed(evt);
            }
        });

        jSET_CNF12.setText("BRP2");
        jSET_CNF12.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CNF12ActionPerformed(evt);
            }
        });

        jSET_CNF11.setText("BRP1");
        jSET_CNF11.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CNF11ActionPerformed(evt);
            }
        });

        jSET_CNF10.setText("BRP0");
        jSET_CNF10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CNF10ActionPerformed(evt);
            }
        });

        jSET_CANINTE5.setText("ERRIE");
        jSET_CANINTE5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANINTE5ActionPerformed(evt);
            }
        });

        jSET_CANINTF5.setText("ERRIF");
        jSET_CANINTF5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANINTF5ActionPerformed(evt);
            }
        });

        jSET_EFLG5.setText("TXBO");
        jSET_EFLG5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_EFLG5ActionPerformed(evt);
            }
        });

        jSET_TXB0CTRL5.setText("MLOA");
        jSET_TXB0CTRL5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_TXB0CTRL5ActionPerformed(evt);
            }
        });

        jSET_TXB0CTRL4.setText("TXERR");
        jSET_TXB0CTRL4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_TXB0CTRL4ActionPerformed(evt);
            }
        });

        jSET_TXB0CTRL3.setText("TXREQ");
        jSET_TXB0CTRL3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_TXB0CTRL3ActionPerformed(evt);
            }
        });

        jSET_TXB0CTRL1.setText("TXP1");
        jSET_TXB0CTRL1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_TXB0CTRL1ActionPerformed(evt);
            }
        });

        jSET_TXB0CTRL0.setText("TXP0");
        jSET_TXB0CTRL0.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_TXB0CTRL0ActionPerformed(evt);
            }
        });

        jSET_TXB1CTRL5.setText("MLOA");
        jSET_TXB1CTRL5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_TXB1CTRL5ActionPerformed(evt);
            }
        });

        jSET_TXB1CTRL4.setText("TXERR");
        jSET_TXB1CTRL4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_TXB1CTRL4ActionPerformed(evt);
            }
        });

        jSET_TXB1CTRL3.setText("TXREQ");
        jSET_TXB1CTRL3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_TXB1CTRL3ActionPerformed(evt);
            }
        });

        jSET_TXB1CTRL1.setText("TXP1");
        jSET_TXB1CTRL1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_TXB1CTRL1ActionPerformed(evt);
            }
        });

        jSET_TXB1CTRL0.setText("TXP0");
        jSET_TXB1CTRL0.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_TXB1CTRL0ActionPerformed(evt);
            }
        });

        jSET_TXB2CTRL5.setText("MLOA");
        jSET_TXB2CTRL5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_TXB2CTRL5ActionPerformed(evt);
            }
        });

        jSET_TXB2CTRL4.setText("TXERR");
        jSET_TXB2CTRL4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_TXB2CTRL4ActionPerformed(evt);
            }
        });

        jSET_TXB2CTRL3.setText("TXREQ");
        jSET_TXB2CTRL3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_TXB2CTRL3ActionPerformed(evt);
            }
        });

        jSET_TXB2CTRL1.setText("TXP1");
        jSET_TXB2CTRL1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_TXB2CTRL1ActionPerformed(evt);
            }
        });

        jSET_TXB2CTRL0.setText("TXP0");
        jSET_TXB2CTRL0.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_TXB2CTRL0ActionPerformed(evt);
            }
        });

        jSET_RXB0CTRL3.setText("RXRTR");
        jSET_RXB0CTRL3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_RXB0CTRL3ActionPerformed(evt);
            }
        });

        jSET_RXB0CTRL1.setText("BUKT");
        jSET_RXB0CTRL1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_RXB0CTRL1ActionPerformed(evt);
            }
        });

        jSET_RXB0CTRL2.setText("BUKT");
        jSET_RXB0CTRL2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_RXB0CTRL2ActionPerformed(evt);
            }
        });

        jSET_RXB0CTRL0.setText("FILHIT0");
        jSET_RXB0CTRL0.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_RXB0CTRL0ActionPerformed(evt);
            }
        });

        jSET_RXB1CTRL0.setText("FILHIT0");
        jSET_RXB1CTRL0.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_RXB1CTRL0ActionPerformed(evt);
            }
        });

        jSET_RXB1CTRL1.setText("FILHIT1");
        jSET_RXB1CTRL1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_RXB1CTRL1ActionPerformed(evt);
            }
        });

        jSET_RXB1CTRL2.setText("FILHIT2");
        jSET_RXB1CTRL2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_RXB1CTRL2ActionPerformed(evt);
            }
        });

        jSET_RXB1CTRL5.setText("RXM0");
        jSET_RXB1CTRL5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_RXB1CTRL5ActionPerformed(evt);
            }
        });

        jSET_RXB1CTRL6.setText("RXM1");
        jSET_RXB1CTRL6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_RXB1CTRL6ActionPerformed(evt);
            }
        });

        jSET_RXB1CTRL3.setText("RXRTR");
        jSET_RXB1CTRL3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_RXB1CTRL3ActionPerformed(evt);
            }
        });

        jSET_CANINTE3.setText("TX1IE");
        jSET_CANINTE3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANINTE3ActionPerformed(evt);
            }
        });

        jSET_CANINTE4.setText("TX2IE");
        jSET_CANINTE4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANINTE4ActionPerformed(evt);
            }
        });

        jSET_CANINTE1.setText("RX1IE");
        jSET_CANINTE1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANINTE1ActionPerformed(evt);
            }
        });

        jSET_CANINTE2.setText("TX0IE");
        jSET_CANINTE2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANINTE2ActionPerformed(evt);
            }
        });

        jSET_CANINTE0.setText("RX0IE");
        jSET_CANINTE0.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANINTE0ActionPerformed(evt);
            }
        });

        jSET_CANINTF4.setText("TX2IF");
        jSET_CANINTF4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANINTF4ActionPerformed(evt);
            }
        });

        jSET_CANINTF3.setText("TX1IF");
        jSET_CANINTF3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANINTF3ActionPerformed(evt);
            }
        });

        jSET_CANINTF2.setText("TX0IF");
        jSET_CANINTF2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANINTF2ActionPerformed(evt);
            }
        });

        jSET_CANINTF1.setText("RX1IF");
        jSET_CANINTF1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANINTF1ActionPerformed(evt);
            }
        });

        jSET_CANINTF0.setText("RX0IF");
        jSET_CANINTF0.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_CANINTF0ActionPerformed(evt);
            }
        });

        jSET_EFLG4.setText("TXEP");
        jSET_EFLG4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_EFLG4ActionPerformed(evt);
            }
        });

        jSET_EFLG3.setText("RXEP");
        jSET_EFLG3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_EFLG3ActionPerformed(evt);
            }
        });

        jSET_EFLG2.setText("TXWAR");
        jSET_EFLG2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_EFLG2ActionPerformed(evt);
            }
        });

        jSET_EFLG1.setText("RXWAR");
        jSET_EFLG1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_EFLG1ActionPerformed(evt);
            }
        });

        jSET_EFLG0.setText("EWARN");
        jSET_EFLG0.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_EFLG0ActionPerformed(evt);
            }
        });

        jSET_BFPCTRL4.setText("B0BFS");
        jSET_BFPCTRL4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_BFPCTRL4ActionPerformed(evt);
            }
        });

        jSET_BFPCTRL3.setText("B1BFE");
        jSET_BFPCTRL3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_BFPCTRL3ActionPerformed(evt);
            }
        });

        jSET_BFPCTRL2.setText("B0BFE");
        jSET_BFPCTRL2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_BFPCTRL2ActionPerformed(evt);
            }
        });

        jSET_BFPCTRL1.setText("B1BFM");
        jSET_BFPCTRL1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_BFPCTRL1ActionPerformed(evt);
            }
        });

        jSET_BFPCTRL0.setText("B0BFM");
        jSET_BFPCTRL0.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_BFPCTRL0ActionPerformed(evt);
            }
        });

        jSET_TXRTSCTRL0.setText("B0RTSM");
        jSET_TXRTSCTRL0.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_TXRTSCTRL0ActionPerformed(evt);
            }
        });

        jSET_TXRTSCTRL1.setText("B1RTSM");
        jSET_TXRTSCTRL1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_TXRTSCTRL1ActionPerformed(evt);
            }
        });

        jSET_TXRTSCTRL2.setText("B2RTSM");
        jSET_TXRTSCTRL2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_TXRTSCTRL2ActionPerformed(evt);
            }
        });

        jSET_TXRTSCTRL5.setText("B2RTS");
        jSET_TXRTSCTRL5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_TXRTSCTRL5ActionPerformed(evt);
            }
        });

        jSET_TXRTSCTRL3.setText("B0RTS");
        jSET_TXRTSCTRL3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jSET_TXRTSCTRL3ActionPerformed(evt);
            }
        });

        jButton1.setText("READ");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        jButton4.setText("jButton4");
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jRegisterLayout = new javax.swing.GroupLayout(jRegister);
        jRegister.setLayout(jRegisterLayout);
        jRegisterLayout.setHorizontalGroup(
            jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jRegisterLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jSET_CANCTRL)
                    .addComponent(jSET_CANSTAT)
                    .addComponent(jSET_TXRTSCTRL)
                    .addComponent(jSET_BFPCTRL)
                    .addComponent(jSET_TEC)
                    .addComponent(jSET_REC)
                    .addComponent(jSET_CNF3)
                    .addComponent(jSET_CNF2)
                    .addComponent(jSET_CNF1)
                    .addComponent(jSET_CANINTE)
                    .addComponent(jSET_CANINTF)
                    .addComponent(jSET_EFLG)
                    .addComponent(jSET_TXB0CTRL)
                    .addComponent(jSET_TXB1CTRL)
                    .addComponent(jSET_TXB2CTRL)
                    .addComponent(jSET_RXB0CTRL)
                    .addComponent(jSET_RXB1CTRL))
                .addGap(14, 14, 14)
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jSET_EFLG7)
                    .addComponent(jSET_CANINTF7)
                    .addComponent(jSET_CANINTE7)
                    .addComponent(jSET_CNF17)
                    .addComponent(jSET_CNF27)
                    .addComponent(jSET_CANCTRL7)
                    .addComponent(jSET_CANSTAT7))
                .addGap(18, 18, 18)
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jSET_CNF16)
                    .addComponent(jSET_CNF26)
                    .addComponent(jSET_CNF36)
                    .addComponent(jSET_CANCTRL6)
                    .addComponent(jSET_CANSTAT6)
                    .addComponent(jSET_CANINTE6)
                    .addComponent(jSET_CANINTF6)
                    .addComponent(jSET_EFLG6)
                    .addComponent(jSET_TXB0CTRL6)
                    .addComponent(jSET_TXB1CTRL6)
                    .addComponent(jSET_TXB2CTRL6)
                    .addComponent(jSET_RXB0CTRL6)
                    .addComponent(jSET_RXB1CTRL6))
                .addGap(18, 18, 18)
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jSET_CNF25)
                    .addComponent(jSET_CNF15)
                    .addComponent(jSET_CANINTE5)
                    .addComponent(jSET_CANINTF5)
                    .addComponent(jSET_EFLG5)
                    .addComponent(jSET_TXB0CTRL5)
                    .addComponent(jSET_TXB1CTRL5)
                    .addComponent(jSET_TXB2CTRL5)
                    .addComponent(jSET_RXB0CTRL5)
                    .addComponent(jSET_RXB1CTRL5)
                    .addComponent(jSET_CANCTRL5)
                    .addComponent(jSET_CANSTAT5)
                    .addComponent(jSET_TXRTSCTRL5)
                    .addComponent(jSET_BFPCTRL5))
                .addGap(18, 18, 18)
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jSET_BFPCTRL4)
                    .addComponent(jSET_TXRTSCTRL4)
                    .addComponent(jSET_CANCTRL4)
                    .addComponent(jSET_CNF24)
                    .addComponent(jSET_CNF14)
                    .addComponent(jSET_CANINTE4)
                    .addComponent(jSET_CANINTF4)
                    .addComponent(jSET_EFLG4)
                    .addComponent(jSET_TXB0CTRL4)
                    .addComponent(jSET_TXB1CTRL4)
                    .addComponent(jSET_TXB2CTRL4))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jSET_BFPCTRL3)
                    .addComponent(jSET_TXRTSCTRL3)
                    .addComponent(jSET_CANSTAT3)
                    .addComponent(jSET_CNF23)
                    .addComponent(jSET_CNF13)
                    .addComponent(jSET_CANINTE3)
                    .addComponent(jSET_CANINTF3)
                    .addComponent(jSET_EFLG3)
                    .addComponent(jSET_TXB0CTRL3)
                    .addComponent(jSET_TXB1CTRL3)
                    .addComponent(jSET_TXB2CTRL3)
                    .addComponent(jSET_RXB0CTRL3)
                    .addComponent(jSET_RXB1CTRL3))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jSET_TXRTSCTRL2)
                    .addComponent(jSET_BFPCTRL2)
                    .addComponent(jSET_CANSTAT2)
                    .addComponent(jSET_CNF32)
                    .addComponent(jSET_CNF22)
                    .addComponent(jSET_CNF12)
                    .addComponent(jSET_CANINTE2)
                    .addComponent(jSET_CANINTF2)
                    .addComponent(jSET_EFLG2)
                    .addComponent(jSET_RXB0CTRL2)
                    .addComponent(jSET_RXB1CTRL2))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jSET_BFPCTRL1)
                    .addComponent(jSET_TXRTSCTRL1)
                    .addComponent(jSET_CANSTAT1)
                    .addComponent(jSET_CNF31)
                    .addComponent(jSET_CNF21)
                    .addComponent(jSET_CNF11)
                    .addComponent(jSET_CANINTE1, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jSET_CANINTF1, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jSET_EFLG1)
                    .addComponent(jSET_TXB0CTRL1)
                    .addComponent(jSET_TXB1CTRL1)
                    .addComponent(jSET_TXB2CTRL1)
                    .addComponent(jSET_RXB0CTRL1)
                    .addComponent(jSET_RXB1CTRL1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jSET_BFPCTRL0)
                    .addComponent(jSET_TXRTSCTRL0)
                    .addComponent(jSET_CNF30)
                    .addComponent(jSET_CNF20, javax.swing.GroupLayout.DEFAULT_SIZE, 103, Short.MAX_VALUE)
                    .addComponent(jSET_CNF10)
                    .addComponent(jSET_CANINTE0, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jSET_CANINTF0, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jSET_EFLG0)
                    .addComponent(jSET_TXB0CTRL0)
                    .addComponent(jSET_TXB1CTRL0)
                    .addComponent(jSET_TXB2CTRL0)
                    .addComponent(jSET_RXB0CTRL0)
                    .addComponent(jSET_RXB1CTRL0))
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jRegisterLayout.createSequentialGroup()
                        .addGap(72, 72, 72)
                        .addComponent(jButton1))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jRegisterLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButton4)))
                .addContainerGap())
            .addGroup(jRegisterLayout.createSequentialGroup()
                .addGap(80, 80, 80)
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jSET_RECedit, javax.swing.GroupLayout.DEFAULT_SIZE, 608, Short.MAX_VALUE)
                    .addComponent(jSET_TECedit))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jRegisterLayout.setVerticalGroup(
            jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jRegisterLayout.createSequentialGroup()
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jRegisterLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                            .addComponent(jSET_BFPCTRL5)
                            .addComponent(jSET_BFPCTRL)
                            .addComponent(jSET_BFPCTRL4)
                            .addComponent(jSET_BFPCTRL3)
                            .addComponent(jSET_BFPCTRL2)
                            .addComponent(jSET_BFPCTRL1)
                            .addComponent(jSET_BFPCTRL0)))
                    .addComponent(jButton1))
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jRegisterLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                            .addComponent(jSET_TXRTSCTRL)
                            .addComponent(jSET_TXRTSCTRL4)
                            .addComponent(jSET_TXRTSCTRL0)
                            .addComponent(jSET_TXRTSCTRL1)
                            .addComponent(jSET_TXRTSCTRL2)
                            .addComponent(jSET_TXRTSCTRL5)
                            .addComponent(jSET_TXRTSCTRL3))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jRegisterLayout.createSequentialGroup()
                                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jSET_CANSTAT)
                                    .addComponent(jSET_CANSTAT7)
                                    .addComponent(jSET_CANSTAT6)
                                    .addComponent(jSET_CANSTAT5))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jSET_CANCTRL)
                                    .addComponent(jSET_CANCTRL7)
                                    .addComponent(jSET_CANCTRL6)))
                            .addGroup(jRegisterLayout.createSequentialGroup()
                                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jSET_CANSTAT3)
                                    .addComponent(jSET_CANSTAT2)
                                    .addComponent(jSET_CANSTAT1))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jSET_CANCTRL5)
                                    .addComponent(jSET_CANCTRL4)))))
                    .addGroup(jRegisterLayout.createSequentialGroup()
                        .addGap(12, 12, 12)
                        .addComponent(jButton4)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jSET_TEC)
                    .addComponent(jSET_TECedit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jSET_REC)
                    .addComponent(jSET_RECedit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jSET_CNF3)
                    .addComponent(jSET_CNF36)
                    .addComponent(jSET_CNF32)
                    .addComponent(jSET_CNF31)
                    .addComponent(jSET_CNF30))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jSET_CNF2)
                    .addComponent(jSET_CNF27)
                    .addComponent(jSET_CNF26)
                    .addComponent(jSET_CNF25)
                    .addComponent(jSET_CNF24)
                    .addComponent(jSET_CNF23)
                    .addComponent(jSET_CNF22)
                    .addComponent(jSET_CNF21)
                    .addComponent(jSET_CNF20))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jSET_CNF1)
                    .addComponent(jSET_CNF17)
                    .addComponent(jSET_CNF16)
                    .addComponent(jSET_CNF15)
                    .addComponent(jSET_CNF14)
                    .addComponent(jSET_CNF13)
                    .addComponent(jSET_CNF12)
                    .addComponent(jSET_CNF11)
                    .addComponent(jSET_CNF10))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jSET_CANINTE)
                    .addComponent(jSET_CANINTE7)
                    .addComponent(jSET_CANINTE6)
                    .addComponent(jSET_CANINTE5)
                    .addComponent(jSET_CANINTE3)
                    .addComponent(jSET_CANINTE4)
                    .addComponent(jSET_CANINTE1)
                    .addComponent(jSET_CANINTE2)
                    .addComponent(jSET_CANINTE0))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jSET_CANINTF)
                    .addComponent(jSET_CANINTF7)
                    .addComponent(jSET_CANINTF6)
                    .addComponent(jSET_CANINTF5)
                    .addComponent(jSET_CANINTF4)
                    .addComponent(jSET_CANINTF3)
                    .addComponent(jSET_CANINTF2)
                    .addComponent(jSET_CANINTF1)
                    .addComponent(jSET_CANINTF0))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jSET_EFLG)
                    .addComponent(jSET_EFLG7)
                    .addComponent(jSET_EFLG6)
                    .addComponent(jSET_EFLG5)
                    .addComponent(jSET_EFLG4)
                    .addComponent(jSET_EFLG3)
                    .addComponent(jSET_EFLG2)
                    .addComponent(jSET_EFLG1)
                    .addComponent(jSET_EFLG0))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jSET_TXB0CTRL)
                    .addComponent(jSET_TXB0CTRL6)
                    .addComponent(jSET_TXB0CTRL5)
                    .addComponent(jSET_TXB0CTRL4)
                    .addComponent(jSET_TXB0CTRL3)
                    .addComponent(jSET_TXB0CTRL1)
                    .addComponent(jSET_TXB0CTRL0))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jSET_TXB1CTRL)
                    .addComponent(jSET_TXB1CTRL6)
                    .addComponent(jSET_TXB1CTRL5)
                    .addComponent(jSET_TXB1CTRL4)
                    .addComponent(jSET_TXB1CTRL3)
                    .addComponent(jSET_TXB1CTRL1)
                    .addComponent(jSET_TXB1CTRL0))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jSET_TXB2CTRL)
                    .addComponent(jSET_TXB2CTRL6)
                    .addComponent(jSET_TXB2CTRL5)
                    .addComponent(jSET_TXB2CTRL4)
                    .addComponent(jSET_TXB2CTRL3)
                    .addComponent(jSET_TXB2CTRL1)
                    .addComponent(jSET_TXB2CTRL0))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jSET_RXB0CTRL)
                    .addComponent(jSET_RXB0CTRL6)
                    .addComponent(jSET_RXB0CTRL5)
                    .addComponent(jSET_RXB0CTRL3)
                    .addComponent(jSET_RXB0CTRL1)
                    .addComponent(jSET_RXB0CTRL2)
                    .addComponent(jSET_RXB0CTRL0))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jRegisterLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jSET_RXB1CTRL)
                    .addComponent(jSET_RXB1CTRL0)
                    .addComponent(jSET_RXB1CTRL1)
                    .addComponent(jSET_RXB1CTRL2)
                    .addComponent(jSET_RXB1CTRL6)
                    .addComponent(jSET_RXB1CTRL3)
                    .addComponent(jSET_RXB1CTRL5))
                .addContainerGap(65, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jRegister, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addComponent(jRegister, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        jTabbedPane1.addTab("REGISTERS", jPanel1);

        jRX_Table.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(jRX_Table);

        jButton2.setText("jButton2");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addComponent(jButton2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 196, Short.MAX_VALUE)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 711, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 14, Short.MAX_VALUE))
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(31, 31, 31)
                .addComponent(jButton2)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("RX", jPanel2);

        jFilter_Table.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null}
            },
            new String [] {
                "Adres", "Maska", "Opis"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Integer.class, java.lang.Integer.class, java.lang.String.class
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }
        });
        jFilter_Table.addVetoableChangeListener(new java.beans.VetoableChangeListener() {
            public void vetoableChange(java.beans.PropertyChangeEvent evt)throws java.beans.PropertyVetoException {
                jFilter_TableVetoableChange(evt);
            }
        });
        jScrollPane2.setViewportView(jFilter_Table);

        jFilter_Add.setText("ADD FILTER");
        jFilter_Add.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jFilter_AddActionPerformed(evt);
            }
        });

        jButton3.setText("jButton3");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(36, 36, 36)
                        .addComponent(jFilter_Add))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(44, 44, 44)
                        .addComponent(jButton3)))
                .addGap(58, 58, 58)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(375, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 14, Short.MAX_VALUE))
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(40, 40, 40)
                .addComponent(jFilter_Add)
                .addGap(31, 31, 31)
                .addComponent(jButton3)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jTabbedPane1.addTab("FILTER", jPanel3);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jTabbedPane1)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 463, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(62, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        int data = CAN.Read(MCP2510.BFPCTRL);
        jSET_BFPCTRL0.setSelected(checkBit(data, 0x01));
        jSET_BFPCTRL1.setSelected(checkBit(data, 0x02));
        jSET_BFPCTRL2.setSelected(checkBit(data, 0x04));
        jSET_BFPCTRL3.setSelected(checkBit(data, 0x08));
        jSET_BFPCTRL4.setSelected(checkBit(data, 0x10));
        jSET_BFPCTRL5.setSelected(checkBit(data, 0x20));
        data = CAN.Read(MCP2510.TXRTSCTRL);
        jSET_TXRTSCTRL0.setSelected(checkBit(data, 0x01));
        jSET_TXRTSCTRL1.setSelected(checkBit(data, 0x02));
        jSET_TXRTSCTRL2.setSelected(checkBit(data, 0x04));
        jSET_TXRTSCTRL3.setSelected(checkBit(data, 0x08));
        jSET_TXRTSCTRL4.setSelected(checkBit(data, 0x10));
        jSET_TXRTSCTRL5.setSelected(checkBit(data, 0x20));
        data = CAN.Read(MCP2510.CANSTAT);
        jSET_CANSTAT1.setSelected(checkBit(data, 0x02));
        jSET_CANSTAT2.setSelected(checkBit(data, 0x04));
        jSET_CANSTAT3.setSelected(checkBit(data, 0x08));
        jSET_CANSTAT5.setSelected(checkBit(data, 0x20));
        jSET_CANSTAT6.setSelected(checkBit(data, 0x40));
        jSET_CANSTAT7.setSelected(checkBit(data, 0x80));
        data = CAN.Read(MCP2510.CANCTRL);
        jSET_CANCTRL4.setSelected(checkBit(data, 0x10));
        jSET_CANCTRL5.setSelected(checkBit(data, 0x20));
        jSET_CANCTRL6.setSelected(checkBit(data, 0x40));
        jSET_CANCTRL7.setSelected(checkBit(data, 0x80));
        data = CAN.Read(MCP2510.TEC);
        jSET_TECedit.setText(String.valueOf(data));
        data = CAN.Read(MCP2510.REC);
        jSET_RECedit.setText(String.valueOf(data));
        data = CAN.Read(MCP2510.CNF3);
        jSET_CNF30.setSelected(checkBit(data, 0x01));
        jSET_CNF31.setSelected(checkBit(data, 0x02));
        jSET_CNF32.setSelected(checkBit(data, 0x04));
        jSET_CNF36.setSelected(checkBit(data, 0x40));
        data = CAN.Read(MCP2510.CNF2);
        jSET_CNF20.setSelected(checkBit(data, 0x01));
        jSET_CNF21.setSelected(checkBit(data, 0x02));
        jSET_CNF22.setSelected(checkBit(data, 0x04));
        jSET_CNF23.setSelected(checkBit(data, 0x08));
        jSET_CNF24.setSelected(checkBit(data, 0x10));
        jSET_CNF25.setSelected(checkBit(data, 0x20));
        jSET_CNF26.setSelected(checkBit(data, 0x40));
        jSET_CNF27.setSelected(checkBit(data, 0x80));
        data = CAN.Read(MCP2510.CNF1);
        jSET_CNF10.setSelected(checkBit(data, 0x01));
        jSET_CNF11.setSelected(checkBit(data, 0x02));
        jSET_CNF12.setSelected(checkBit(data, 0x04));
        jSET_CNF13.setSelected(checkBit(data, 0x08));
        jSET_CNF14.setSelected(checkBit(data, 0x10));
        jSET_CNF15.setSelected(checkBit(data, 0x20));
        jSET_CNF16.setSelected(checkBit(data, 0x40));
        jSET_CNF17.setSelected(checkBit(data, 0x80));
        data = CAN.Read(MCP2510.CANINTE);
        jSET_CANINTE0.setSelected(checkBit(data, 0x01));
        jSET_CANINTE1.setSelected(checkBit(data, 0x02));
        jSET_CANINTE2.setSelected(checkBit(data, 0x04));
        jSET_CANINTE3.setSelected(checkBit(data, 0x08));
        jSET_CANINTE4.setSelected(checkBit(data, 0x10));
        jSET_CANINTE5.setSelected(checkBit(data, 0x20));
        jSET_CANINTE6.setSelected(checkBit(data, 0x40));
        jSET_CANINTE7.setSelected(checkBit(data, 0x80));
        data = CAN.Read(MCP2510.CANINTF);
        jSET_CANINTF0.setSelected(checkBit(data, 0x01));
        jSET_CANINTF1.setSelected(checkBit(data, 0x02));
        jSET_CANINTF2.setSelected(checkBit(data, 0x04));
        jSET_CANINTF3.setSelected(checkBit(data, 0x08));
        jSET_CANINTF4.setSelected(checkBit(data, 0x10));
        jSET_CANINTF5.setSelected(checkBit(data, 0x20));
        jSET_CANINTF6.setSelected(checkBit(data, 0x40));
        jSET_CANINTF7.setSelected(checkBit(data, 0x80));
        data = CAN.Read(MCP2510.EFLG);
        jSET_EFLG0.setSelected(checkBit(data, 0x01));
        jSET_EFLG1.setSelected(checkBit(data, 0x02));
        jSET_EFLG2.setSelected(checkBit(data, 0x04));
        jSET_EFLG3.setSelected(checkBit(data, 0x08));
        jSET_EFLG4.setSelected(checkBit(data, 0x10));
        jSET_EFLG5.setSelected(checkBit(data, 0x20));
        jSET_EFLG6.setSelected(checkBit(data, 0x40));
        jSET_EFLG7.setSelected(checkBit(data, 0x80));
        data = CAN.Read(MCP2510.TXB0CTRL);
        jSET_TXB0CTRL0.setSelected(checkBit(data, 0x01));
        jSET_TXB0CTRL1.setSelected(checkBit(data, 0x02));
        jSET_TXB0CTRL3.setSelected(checkBit(data, 0x08));
        jSET_TXB0CTRL4.setSelected(checkBit(data, 0x10));
        jSET_TXB0CTRL5.setSelected(checkBit(data, 0x20));
        jSET_TXB0CTRL6.setSelected(checkBit(data, 0x40));
        data = CAN.Read(MCP2510.TXB1CTRL);
        jSET_TXB1CTRL0.setSelected(checkBit(data, 0x01));
        jSET_TXB1CTRL1.setSelected(checkBit(data, 0x02));
        jSET_TXB1CTRL3.setSelected(checkBit(data, 0x08));
        jSET_TXB1CTRL4.setSelected(checkBit(data, 0x10));
        jSET_TXB1CTRL5.setSelected(checkBit(data, 0x20));
        jSET_TXB1CTRL6.setSelected(checkBit(data, 0x40));
        data = CAN.Read(MCP2510.TXB2CTRL);
        jSET_TXB2CTRL0.setSelected(checkBit(data, 0x01));
        jSET_TXB2CTRL1.setSelected(checkBit(data, 0x02));
        jSET_TXB2CTRL3.setSelected(checkBit(data, 0x08));
        jSET_TXB2CTRL4.setSelected(checkBit(data, 0x10));
        jSET_TXB2CTRL5.setSelected(checkBit(data, 0x20));
        jSET_TXB2CTRL6.setSelected(checkBit(data, 0x40));
        data = CAN.Read(MCP2510.RXB0CTRL);
        jSET_RXB0CTRL0.setSelected(checkBit(data, 0x01));
        jSET_RXB0CTRL1.setSelected(checkBit(data, 0x02));
        jSET_RXB0CTRL2.setSelected(checkBit(data, 0x04));
        jSET_RXB0CTRL3.setSelected(checkBit(data, 0x08)); 
        jSET_RXB0CTRL5.setSelected(checkBit(data, 0x20));
        jSET_RXB0CTRL6.setSelected(checkBit(data, 0x40));
        data = CAN.Read(MCP2510.RXB1CTRL);
        jSET_RXB1CTRL0.setSelected(checkBit(data, 0x01));
        jSET_RXB1CTRL1.setSelected(checkBit(data, 0x02));
        jSET_RXB1CTRL2.setSelected(checkBit(data, 0x04));
        jSET_RXB1CTRL3.setSelected(checkBit(data, 0x08));
        jSET_RXB1CTRL5.setSelected(checkBit(data, 0x20));
        jSET_RXB1CTRL6.setSelected(checkBit(data, 0x40));
         
    }//GEN-LAST:event_jButton1ActionPerformed

    private void jSET_BFPCTRL5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_BFPCTRL5ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_BFPCTRL5ActionPerformed

    private void jSET_BFPCTRL4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_BFPCTRL4ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_BFPCTRL4ActionPerformed

    private void jSET_BFPCTRL3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_BFPCTRL3ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_BFPCTRL3ActionPerformed

    private void jSET_BFPCTRL2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_BFPCTRL2ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_BFPCTRL2ActionPerformed

    private void jSET_BFPCTRL1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_BFPCTRL1ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_BFPCTRL1ActionPerformed

    private void jSET_BFPCTRL0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_BFPCTRL0ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_BFPCTRL0ActionPerformed

    private void jSET_TXRTSCTRL5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_TXRTSCTRL5ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_TXRTSCTRL5ActionPerformed

    private void jSET_TXRTSCTRL4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_TXRTSCTRL4ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_TXRTSCTRL4ActionPerformed

    private void jSET_TXRTSCTRL3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_TXRTSCTRL3ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_TXRTSCTRL3ActionPerformed

    private void jSET_TXRTSCTRL2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_TXRTSCTRL2ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_TXRTSCTRL2ActionPerformed

    private void jSET_TXRTSCTRL1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_TXRTSCTRL1ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_TXRTSCTRL1ActionPerformed

    private void jSET_TXRTSCTRL0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_TXRTSCTRL0ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_TXRTSCTRL0ActionPerformed

    private void jSET_CANSTAT7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANSTAT7ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANSTAT7ActionPerformed

    private void jSET_CANSTAT6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANSTAT6ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANSTAT6ActionPerformed

    private void jSET_CANSTAT5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANSTAT5ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANSTAT5ActionPerformed

    private void jSET_CANSTAT3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANSTAT3ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANSTAT3ActionPerformed

    private void jSET_CANSTAT2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANSTAT2ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANSTAT2ActionPerformed

    private void jSET_CANSTAT1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANSTAT1ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANSTAT1ActionPerformed

    private void jSET_CANCTRL7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANCTRL7ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANCTRL7ActionPerformed

    private void jSET_CANCTRL6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANCTRL6ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANCTRL6ActionPerformed

    private void jSET_CANCTRL5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANCTRL5ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANCTRL5ActionPerformed

    private void jSET_CANCTRL4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANCTRL4ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANCTRL4ActionPerformed

    private void jSET_CNF36ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CNF36ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CNF36ActionPerformed

    private void jSET_CNF32ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CNF32ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CNF32ActionPerformed

    private void jSET_CNF31ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CNF31ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CNF31ActionPerformed

    private void jSET_CNF30ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CNF30ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CNF30ActionPerformed

    private void jSET_CNF27ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CNF27ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CNF27ActionPerformed

    private void jSET_CNF26ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CNF26ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CNF26ActionPerformed

    private void jSET_CNF25ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CNF25ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CNF25ActionPerformed

    private void jSET_CNF24ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CNF24ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CNF24ActionPerformed

    private void jSET_CNF23ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CNF23ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CNF23ActionPerformed

    private void jSET_CNF22ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CNF22ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CNF22ActionPerformed

    private void jSET_CNF21ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CNF21ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CNF21ActionPerformed

    private void jSET_CNF20ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CNF20ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CNF20ActionPerformed

    private void jSET_CNF17ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CNF17ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CNF17ActionPerformed

    private void jSET_CNF16ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CNF16ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CNF16ActionPerformed

    private void jSET_CNF15ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CNF15ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CNF15ActionPerformed

    private void jSET_CNF14ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CNF14ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CNF14ActionPerformed

    private void jSET_CNF13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CNF13ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CNF13ActionPerformed

    private void jSET_CNF12ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CNF12ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CNF12ActionPerformed

    private void jSET_CNF11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CNF11ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CNF11ActionPerformed

    private void jSET_CNF10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CNF10ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CNF10ActionPerformed

    private void jSET_CANINTE7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANINTE7ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANINTE7ActionPerformed

    private void jSET_CANINTE6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANINTE6ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANINTE6ActionPerformed

    private void jSET_CANINTE5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANINTE5ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANINTE5ActionPerformed

    private void jSET_CANINTE4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANINTE4ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANINTE4ActionPerformed

    private void jSET_CANINTE3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANINTE3ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANINTE3ActionPerformed

    private void jSET_CANINTE2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANINTE2ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANINTE2ActionPerformed

    private void jSET_CANINTE1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANINTE1ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANINTE1ActionPerformed

    private void jSET_CANINTE0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANINTE0ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANINTE0ActionPerformed

    private void jSET_CANINTF7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANINTF7ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANINTF7ActionPerformed

    private void jSET_CANINTF6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANINTF6ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANINTF6ActionPerformed

    private void jSET_CANINTF5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANINTF5ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANINTF5ActionPerformed

    private void jSET_CANINTF4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANINTF4ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANINTF4ActionPerformed

    private void jSET_CANINTF3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANINTF3ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANINTF3ActionPerformed

    private void jSET_CANINTF2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANINTF2ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANINTF2ActionPerformed

    private void jSET_CANINTF1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANINTF1ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANINTF1ActionPerformed

    private void jSET_CANINTF0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_CANINTF0ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_CANINTF0ActionPerformed

    private void jSET_EFLG7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_EFLG7ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_EFLG7ActionPerformed

    private void jSET_EFLG6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_EFLG6ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_EFLG6ActionPerformed

    private void jSET_EFLG5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_EFLG5ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_EFLG5ActionPerformed

    private void jSET_EFLG4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_EFLG4ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_EFLG4ActionPerformed

    private void jSET_EFLG3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_EFLG3ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_EFLG3ActionPerformed

    private void jSET_EFLG2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_EFLG2ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_EFLG2ActionPerformed

    private void jSET_EFLG1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_EFLG1ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_EFLG1ActionPerformed

    private void jSET_EFLG0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_EFLG0ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_EFLG0ActionPerformed

    private void jSET_TXB0CTRL6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_TXB0CTRL6ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_TXB0CTRL6ActionPerformed

    private void jSET_TXB0CTRL5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_TXB0CTRL5ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_TXB0CTRL5ActionPerformed

    private void jSET_TXB0CTRL4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_TXB0CTRL4ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_TXB0CTRL4ActionPerformed

    private void jSET_TXB0CTRL3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_TXB0CTRL3ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_TXB0CTRL3ActionPerformed

    private void jSET_TXB0CTRL1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_TXB0CTRL1ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_TXB0CTRL1ActionPerformed

    private void jSET_TXB0CTRL0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_TXB0CTRL0ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_TXB0CTRL0ActionPerformed

    private void jSET_TXB1CTRL6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_TXB1CTRL6ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_TXB1CTRL6ActionPerformed

    private void jSET_TXB1CTRL5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_TXB1CTRL5ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_TXB1CTRL5ActionPerformed

    private void jSET_TXB1CTRL4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_TXB1CTRL4ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_TXB1CTRL4ActionPerformed

    private void jSET_TXB1CTRL3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_TXB1CTRL3ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_TXB1CTRL3ActionPerformed

    private void jSET_TXB1CTRL1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_TXB1CTRL1ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_TXB1CTRL1ActionPerformed

    private void jSET_TXB1CTRL0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_TXB1CTRL0ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_TXB1CTRL0ActionPerformed

    private void jSET_TXB2CTRL6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_TXB2CTRL6ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_TXB2CTRL6ActionPerformed

    private void jSET_TXB2CTRL5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_TXB2CTRL5ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_TXB2CTRL5ActionPerformed

    private void jSET_TXB2CTRL4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_TXB2CTRL4ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_TXB2CTRL4ActionPerformed

    private void jSET_TXB2CTRL3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_TXB2CTRL3ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_TXB2CTRL3ActionPerformed

    private void jSET_TXB2CTRL1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_TXB2CTRL1ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_TXB2CTRL1ActionPerformed

    private void jSET_TXB2CTRL0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_TXB2CTRL0ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_TXB2CTRL0ActionPerformed

    private void jSET_RXB0CTRL6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_RXB0CTRL6ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_RXB0CTRL6ActionPerformed

    private void jSET_RXB0CTRL5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_RXB0CTRL5ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_RXB0CTRL5ActionPerformed

    private void jSET_RXB0CTRL3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_RXB0CTRL3ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_RXB0CTRL3ActionPerformed

    private void jSET_RXB0CTRL2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_RXB0CTRL2ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_RXB0CTRL2ActionPerformed

    private void jSET_RXB0CTRL1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_RXB0CTRL1ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_RXB0CTRL1ActionPerformed

    private void jSET_RXB0CTRL0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_RXB0CTRL0ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_RXB0CTRL0ActionPerformed

    private void jSET_RXB1CTRL6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_RXB1CTRL6ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_RXB1CTRL6ActionPerformed

    private void jSET_RXB1CTRL5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_RXB1CTRL5ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_RXB1CTRL5ActionPerformed

    private void jSET_RXB1CTRL3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_RXB1CTRL3ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_RXB1CTRL3ActionPerformed

    private void jSET_RXB1CTRL2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_RXB1CTRL2ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_RXB1CTRL2ActionPerformed

    private void jSET_RXB1CTRL1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_RXB1CTRL1ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_RXB1CTRL1ActionPerformed

    private void jSET_RXB1CTRL0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jSET_RXB1CTRL0ActionPerformed
        checkboxAction(evt);
    }//GEN-LAST:event_jSET_RXB1CTRL0ActionPerformed

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        Calendar cal = Calendar.getInstance();
        String time = cal.get(Calendar.HOUR)+":"+cal.get(Calendar.MINUTE)+":"+cal.get(Calendar.SECOND)+","+cal.get(Calendar.MILLISECOND);
        
        //System.out.println(System.currentTimeMillis());
        CANrx.addRow(new Object[]{time, "v2", "v3", "V4"});
        
        jRX_Table.setModel(CANrx);
    }//GEN-LAST:event_jButton2ActionPerformed

    private void jFilter_AddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jFilter_AddActionPerformed
        //jFilter_Table.getModel().a
        DefaultTableModel model = (DefaultTableModel) jFilter_Table.getModel();
        model.addRow(new Object[]{null,null,null});
        //System.out.println(jFilter_Table.getModel().getValueAt(0, 0));
        jFilter_Table = new JTable(model);
    }//GEN-LAST:event_jFilter_AddActionPerformed

    private void jFilter_TableVetoableChange(java.beans.PropertyChangeEvent evt)throws java.beans.PropertyVetoException {//GEN-FIRST:event_jFilter_TableVetoableChange
       System.out.println("zmianie");
       Maski maski = new Maski();
    
        maski.add(new Maska(0xF0,0xF0,"ten"));
        maski.add(new Maska(0x30,0x70,"tego"));
        
        System.out.println(maski.find(0xFF));
        System.out.println(maski.find(0x3F));
        
    }//GEN-LAST:event_jFilter_TableVetoableChange

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed

    }//GEN-LAST:event_jButton3ActionPerformed

    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
        CAN.testGPIO();
    }//GEN-LAST:event_jButton4ActionPerformed

    
    private void checkboxAction(java.awt.event.ActionEvent evt){
        try {
            String methodName = Thread.currentThread().getStackTrace()[2].getMethodName();
            String register = methodName.replace("jSET_", "").replace("ActionPerformed", "");
            int rol = Character.getNumericValue(register.charAt(register.length()-1));           
            register = register.substring(0, register.length()-1);
            int adress = CAN.getClass().getField(register).getInt(CAN.getClass().getField(register));
            JCheckBox checkBox = (JCheckBox)evt.getSource();
            if( checkBox.isSelected() ) {
                CAN.Write(adress, 0xFF, (int)Math.pow(2, rol));
            } else {
                CAN.Write(adress, 0x00, (int)Math.pow(2, rol));
            }
        } catch (NoSuchFieldException ex) {
            System.out.println(ex);
        } catch (SecurityException ex) {
            System.out.println(ex);
        } catch (IllegalArgumentException ex) {
            System.out.println( ex);
        } catch (IllegalAccessException ex) {
            System.out.println( ex);
        }
    }
    
    private boolean checkBit(int data, int mask){
        if ((data&mask)==mask){
            return true;
         } else {
            return false;
        }
                
                
    }
    
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(CANsniffer.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(CANsniffer.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(CANsniffer.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(CANsniffer.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>
        CANrx.addColumn("Czas"); 
        CANrx.addColumn("Adres"); 
        CANrx.addColumn("Dane"); 
        CANrx.addColumn("Opis"); 
        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new CANsniffer().setVisible(true);        
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jFilter_Add;
    private javax.swing.JTable jFilter_Table;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JTable jRX_Table;
    private javax.swing.JPanel jRegister;
    private javax.swing.JLabel jSET_BFPCTRL;
    private javax.swing.JCheckBox jSET_BFPCTRL0;
    private javax.swing.JCheckBox jSET_BFPCTRL1;
    private javax.swing.JCheckBox jSET_BFPCTRL2;
    private javax.swing.JCheckBox jSET_BFPCTRL3;
    private javax.swing.JCheckBox jSET_BFPCTRL4;
    private javax.swing.JCheckBox jSET_BFPCTRL5;
    private javax.swing.JLabel jSET_CANCTRL;
    private javax.swing.JCheckBox jSET_CANCTRL4;
    private javax.swing.JCheckBox jSET_CANCTRL5;
    private javax.swing.JCheckBox jSET_CANCTRL6;
    private javax.swing.JCheckBox jSET_CANCTRL7;
    private javax.swing.JLabel jSET_CANINTE;
    private javax.swing.JCheckBox jSET_CANINTE0;
    private javax.swing.JCheckBox jSET_CANINTE1;
    private javax.swing.JCheckBox jSET_CANINTE2;
    private javax.swing.JCheckBox jSET_CANINTE3;
    private javax.swing.JCheckBox jSET_CANINTE4;
    private javax.swing.JCheckBox jSET_CANINTE5;
    private javax.swing.JCheckBox jSET_CANINTE6;
    private javax.swing.JCheckBox jSET_CANINTE7;
    private javax.swing.JLabel jSET_CANINTF;
    private javax.swing.JCheckBox jSET_CANINTF0;
    private javax.swing.JCheckBox jSET_CANINTF1;
    private javax.swing.JCheckBox jSET_CANINTF2;
    private javax.swing.JCheckBox jSET_CANINTF3;
    private javax.swing.JCheckBox jSET_CANINTF4;
    private javax.swing.JCheckBox jSET_CANINTF5;
    private javax.swing.JCheckBox jSET_CANINTF6;
    private javax.swing.JCheckBox jSET_CANINTF7;
    private javax.swing.JLabel jSET_CANSTAT;
    private javax.swing.JCheckBox jSET_CANSTAT1;
    private javax.swing.JCheckBox jSET_CANSTAT2;
    private javax.swing.JCheckBox jSET_CANSTAT3;
    private javax.swing.JCheckBox jSET_CANSTAT5;
    private javax.swing.JCheckBox jSET_CANSTAT6;
    private javax.swing.JCheckBox jSET_CANSTAT7;
    private javax.swing.JLabel jSET_CNF1;
    private javax.swing.JCheckBox jSET_CNF10;
    private javax.swing.JCheckBox jSET_CNF11;
    private javax.swing.JCheckBox jSET_CNF12;
    private javax.swing.JCheckBox jSET_CNF13;
    private javax.swing.JCheckBox jSET_CNF14;
    private javax.swing.JCheckBox jSET_CNF15;
    private javax.swing.JCheckBox jSET_CNF16;
    private javax.swing.JCheckBox jSET_CNF17;
    private javax.swing.JLabel jSET_CNF2;
    private javax.swing.JCheckBox jSET_CNF20;
    private javax.swing.JCheckBox jSET_CNF21;
    private javax.swing.JCheckBox jSET_CNF22;
    private javax.swing.JCheckBox jSET_CNF23;
    private javax.swing.JCheckBox jSET_CNF24;
    private javax.swing.JCheckBox jSET_CNF25;
    private javax.swing.JCheckBox jSET_CNF26;
    private javax.swing.JCheckBox jSET_CNF27;
    private javax.swing.JLabel jSET_CNF3;
    private javax.swing.JCheckBox jSET_CNF30;
    private javax.swing.JCheckBox jSET_CNF31;
    private javax.swing.JCheckBox jSET_CNF32;
    private javax.swing.JCheckBox jSET_CNF36;
    private javax.swing.JLabel jSET_EFLG;
    private javax.swing.JCheckBox jSET_EFLG0;
    private javax.swing.JCheckBox jSET_EFLG1;
    private javax.swing.JCheckBox jSET_EFLG2;
    private javax.swing.JCheckBox jSET_EFLG3;
    private javax.swing.JCheckBox jSET_EFLG4;
    private javax.swing.JCheckBox jSET_EFLG5;
    private javax.swing.JCheckBox jSET_EFLG6;
    private javax.swing.JCheckBox jSET_EFLG7;
    private javax.swing.JLabel jSET_REC;
    private javax.swing.JTextField jSET_RECedit;
    private javax.swing.JLabel jSET_RXB0CTRL;
    private javax.swing.JCheckBox jSET_RXB0CTRL0;
    private javax.swing.JCheckBox jSET_RXB0CTRL1;
    private javax.swing.JCheckBox jSET_RXB0CTRL2;
    private javax.swing.JCheckBox jSET_RXB0CTRL3;
    private javax.swing.JCheckBox jSET_RXB0CTRL5;
    private javax.swing.JCheckBox jSET_RXB0CTRL6;
    private javax.swing.JLabel jSET_RXB1CTRL;
    private javax.swing.JCheckBox jSET_RXB1CTRL0;
    private javax.swing.JCheckBox jSET_RXB1CTRL1;
    private javax.swing.JCheckBox jSET_RXB1CTRL2;
    private javax.swing.JCheckBox jSET_RXB1CTRL3;
    private javax.swing.JCheckBox jSET_RXB1CTRL5;
    private javax.swing.JCheckBox jSET_RXB1CTRL6;
    private javax.swing.JLabel jSET_TEC;
    private javax.swing.JTextField jSET_TECedit;
    private javax.swing.JLabel jSET_TXB0CTRL;
    private javax.swing.JCheckBox jSET_TXB0CTRL0;
    private javax.swing.JCheckBox jSET_TXB0CTRL1;
    private javax.swing.JCheckBox jSET_TXB0CTRL3;
    private javax.swing.JCheckBox jSET_TXB0CTRL4;
    private javax.swing.JCheckBox jSET_TXB0CTRL5;
    private javax.swing.JCheckBox jSET_TXB0CTRL6;
    private javax.swing.JLabel jSET_TXB1CTRL;
    private javax.swing.JCheckBox jSET_TXB1CTRL0;
    private javax.swing.JCheckBox jSET_TXB1CTRL1;
    private javax.swing.JCheckBox jSET_TXB1CTRL3;
    private javax.swing.JCheckBox jSET_TXB1CTRL4;
    private javax.swing.JCheckBox jSET_TXB1CTRL5;
    private javax.swing.JCheckBox jSET_TXB1CTRL6;
    private javax.swing.JLabel jSET_TXB2CTRL;
    private javax.swing.JCheckBox jSET_TXB2CTRL0;
    private javax.swing.JCheckBox jSET_TXB2CTRL1;
    private javax.swing.JCheckBox jSET_TXB2CTRL3;
    private javax.swing.JCheckBox jSET_TXB2CTRL4;
    private javax.swing.JCheckBox jSET_TXB2CTRL5;
    private javax.swing.JCheckBox jSET_TXB2CTRL6;
    private javax.swing.JLabel jSET_TXRTSCTRL;
    private javax.swing.JCheckBox jSET_TXRTSCTRL0;
    private javax.swing.JCheckBox jSET_TXRTSCTRL1;
    private javax.swing.JCheckBox jSET_TXRTSCTRL2;
    private javax.swing.JCheckBox jSET_TXRTSCTRL3;
    private javax.swing.JCheckBox jSET_TXRTSCTRL4;
    private javax.swing.JCheckBox jSET_TXRTSCTRL5;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JTabbedPane jTabbedPane1;
    // End of variables declaration//GEN-END:variables
}
